<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    var a=100;
    var b=15;
    var c="8";
    //如果加号两边出现的都是数字，它起到的作用是算术运算的作用
    //如果加号两边有字符串出现，起的作用是字符串拼接的作用,5+"3"=53,这个53是string
    console.log(a+b);
    console.log(b+c);
    console.log(typeof (b+c));
    var x=3;
    var y="3";
    var z=5;
    z+=y;
    var a=y+z;
    document.write(x+y+'<br/>');
    document.write(z+'<br/>');
    document.write(a+'<br/>');
    document.write(x+y+z+'<br/>');
</script>
</html>
